package com.poem.constant;

/**
 * @ClassName: MessageConstant
 * @Author: YLY
 * @Description:
 * @Date: 2025/10/21
 * @Version: 1.0
 */
public class MessageConstant {

    // 用户名或密码错误
    public static final String USERNAME_PASSWORD_ERROR = "用户名或密码错误";
    // 用户不存在
    public static final String USER_NOT_EXIST = "用户不存在";

    // 该诗文已被收藏，无法删除
    public static final String POEM_ALREADY_FAVORITES = "诗文已被收藏，无法删除";

    public static final String ACCOUNT_ALREADY_EXISTS = "已存在";

    public static final String UNKNOWN_ERROR = "未知错误";

    // 收藏相关
    public static final String FAVORITE_ALREADY_EXISTS = "该资源已被收藏，不能重复收藏";
    public static final String FAVORITE_NOT_EXISTS = "收藏不存在";
    public static final String RESOURCE_NOT_EXISTS = "资源不存在";

    // 作者相关
    public static final String AUTHOR_NOT_EXISTS = "作者不存在";
    public static final String AUTHOR_ALREADY_FAVORITES = "作者已被收藏，无法删除";
    public static final String AUTHOR_HAS_POEMS = "该作者下有诗歌，无法删除";

    // 题材相关
    public static final String TYPE_NOT_EXISTS = "题材不存在";
    public static final String TYPE_HAS_POEMS = "该题材下有诗歌，无法删除";

    // 诗文相关
    public static final String POEM_NOT_EXISTS = "诗文不存在";

    // 用户相关
    public static final String USER_ID_NOT_EXISTS = "用户ID不存在";
    public static final String USER_IS_ADMIN = "是管理员，无法删除";
}
